package section_07.set;

import java.util.*;
import java.util.logging.*;

/**
 * @author Cay Horstmann
 * @version 1.02 2012-01-26
 */
public class SetTest {
    public static void main(String[] args) {
        Logger.getLogger("com.horstmann").setLevel(Level.FINEST);
        Handler handler = new ConsoleHandler();
        handler.setLevel(Level.FINEST);
        Logger.getLogger("com.horstmann").addHandler(handler);

        Set<Item> parts = new HashSet<>();
        parts.add(new Item("Toaster", 1279));
        parts.add(new Item("Microwave", 4104));
        parts.add(new Item("Toaster", 1279));
        System.out.println(parts);
    }
}
